import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// 添加高德地图
// const AMapKey = '589fae6765b2ab50d6a6dc11e72e883a'
// const script = document.createElement('script')
// script.src = `https://webapi.amap.com/maps?v=2.0&key=${AMapKey}`
// document.head.appendChild(script)


// #ifdef VUE3
import { createSSRApp } from 'vue'
import api from '@/common/api.js'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$api = api;
  return {
    app
  }
}
// #endif